const proxyPath = {
  proxyOA: '',
  proxyF: '',
  proxyC: '',
  proxyY: '',
  apiG: ''
}

export default class apiConfig {
  static root = {
    sysUserRoleApi: proxyPath.proxyOA + '/sysUserRoleApi', //用户绑定角色设置  //不删除
    sysdutybar: proxyPath.proxyOA + '/sysBasicDutyApi', //基础岗位接口  不删除

    sysOrganizeRoot: proxyPath.proxyOA + '/sysOrganizeApi', //不删除
    sysImportApi: proxyPath.proxyOA + '/sysImportApi',
    sysRoleApi: proxyPath.proxyOA + '/sysRoleApi', //不删除
    sysMenuApi: proxyPath.proxyOA + '/sysMenuApi', //不删除
    sysUserApi: proxyPath.proxyOA + '/sysUserApi', //不删除
    bsSupplierApi: proxyPath.proxyOA + '/bsSupplierApi', //不删除
    bsCardImageApi: proxyPath.proxyOA + '/bsCardImageApi', //不删除
    sysImportApi: proxyPath.proxyOA + '/sysImportApi', //不删除
    bsProBiddingApi: proxyPath.proxyOA + '/bsProBiddingApi', //不删除

    bsCommodityApi: proxyPath.proxyOA + '/bsCommodityApi', //不删除
    bsRecruitmentApi: proxyPath.proxyOA + '/bsRecruitmentApi', //不删除
    bsConsultancyApi: proxyPath.proxyOA + '/bsConsultancyApi', //不删除
    sysDictionaryApi: proxyPath.proxyOA + '/sysDictionaryApi', //不删除
    sysUserGroupApi: proxyPath.proxyOA + '/sysUserGroupApi',
    sysLoginApi: proxyPath.proxyOA + '/sysLoginApi',

    file: proxyPath.proxyY + '/thirdParty-consumer/fileApi',

    thirdPartyConsumer: proxyPath.proxyY + '/thirdParty-consumer', //附件上传(附件上传需要调用第三方的接口,为了避免跨域,添加fileHost前缀)
    busNote: proxyPath.proxyC + '/busNote',
    busSystemUpdateRecord: proxyPath.proxyC + '/busSystemUpdateRecord',

    sysMobilUserApi: proxyPath.proxyF + '/sysMobilUserApi' //App切换
  }

  static API = {
    //用户绑定角色
    sysUserRoleApi: {
      getbindingRoleByUserInfo: apiConfig.root.sysUserRoleApi + '/getbindingRoleByUserId', //获取用户已经绑定的角色
      bindingUserAndRole: apiConfig.root.sysUserRoleApi + '/bindingUserAndRole' //获取用户已经绑定的角色
    },

    //基础岗位设置
    sysdutybar: {
      getpage: apiConfig.root.sysdutybar + '/getPager',
      delete: apiConfig.root.sysdutybar + '/delete',
      getSysGroupById: apiConfig.root.sysdutybar + '/getById',
      save: apiConfig.root.sysdutybar + '/save',
      update: apiConfig.root.sysdutybar + '/update'
    },
    //绑定人员接口
    sysUserGroupApiUrl: {
      savesysUserGroupApi: apiConfig.root.sysUserGroupApi + '/update', //绑定人员编辑
      savesysGroupUserlist: apiConfig.root.sysUserGroupApi + '/getSysUserByGroupId', //获取组下面人员信息
      getViewUserByGroupId: apiConfig.root.sysUserGroupApi + '/getViewUserByGroupId' //获取组下面人员信息1
    },
    //机构请求
    sysOrganizeApi: {
      getListUrl: apiConfig.root.sysOrganizeRoot + '/getSysOrganizeBySysUserId', //获取组织机构(权限)
      insertUrl: apiConfig.root.sysOrganizeRoot + '/getById',
      updateUrl: apiConfig.root.sysOrganizeRoot + '/update',
      deleteUrl: apiConfig.root.sysOrganizeRoot + '/cascadeDelete',
      gettreeUrl: apiConfig.root.sysOrganizeRoot + '/getTree',
      getbyidtreeUrl: apiConfig.root.sysOrganizeRoot + '/getById',
      deletetreeUrl: apiConfig.root.sysOrganizeRoot + '/delete',
      savetreeUrl: apiConfig.root.sysOrganizeRoot + '/save' //新增组织机构(权限)
    },

    //角色请求
    getRolelist: {
      addRoleListUrl: apiConfig.root.sysRoleApi + '/save', //新增角色(权限)
      getRoleListPageUrl: apiConfig.root.sysRoleApi + '/page', //获取角色分页接口(权限)
      getRoleListUrl: apiConfig.root.sysRoleApi + '/getSysRolesBySysDutyIdOrRoleKeyWords', //获取角色列表接口(权限)
      delRoleListPageUrl: apiConfig.root.sysRoleApi + '/delete', //删除角色(权限)
      updateRoleListPageUrl: apiConfig.root.sysRoleApi + '/getById', //获取角色详情接口(权限)
      updatesRoleListPageUrl: apiConfig.root.sysRoleApi + '/update',
      getAllSysRoles: apiConfig.root.sysRoleApi + '/liet' //获取所有角色
    },
    //菜单请求
    sysMenuApi: {
      getMenuTreeUrl: apiConfig.root.sysMenuApi + '/getTree',

      addMenuListUrl: apiConfig.root.sysMenuApi + '/save', //新增菜单接口(权限)
      updateMenuListUrl: apiConfig.root.sysMenuApi + '/update', //编辑菜单接口(权限)
      addbuttonMenuListUrl: apiConfig.root.sysMenuApi + '/saveButton',
      getMenuListUrl: apiConfig.root.sysMenuApi + '/getList',
      getbyidMenuListUrl: apiConfig.root.sysMenuApi + '/getById', //获取菜单详情接口(权限)
      getSysMenuTreeBySysDutyId: apiConfig.root.sysMenuApi + '/getSysMenuTreeBySysRoleId', //获取角色菜单详情接口(权限)
      deleteMenuListUrl: apiConfig.root.sysMenuApi + '/delete', //删除菜单(权限)
      saveDynamicPageMenuListUrl: apiConfig.root.sysMenuApi + '/saveDynamicPage',

      getSysMenuTreeOrBySysDutyId: apiConfig.root.sysMenuApi + '/liet' //获取菜单树接口(权限)
    },

    //用户请求

    sysUserApi: {
      getsysUserUrl: apiConfig.root.sysUserApi + '/getUserFullInfoByDutyId', //获取当前岗位下的用户
      getUserFullInfoByDutyIdAndOrganize: apiConfig.root.sysUserApi + '/page', //获取当前可看所有用户
      addUserApi: apiConfig.root.sysUserApi + '/save', //新增用户(权限)
      getbyidUser: apiConfig.root.sysUserApi + '/getById', //获取详情(权限)
      deletedUser: apiConfig.root.sysUserApi + '/delete', //删除用户(权限)
      updatedUser: apiConfig.root.sysUserApi + '/update', //编辑用户(权限)
      resetUser: apiConfig.root.sysUserApi + '/resetPassword',
      // updateEnableStatus: apiConfig.root.sysUserApi + '/updateEnableStatus',
      // getCurrentUser: apiConfig.root.sysUserApi + '/getCurrentUser',
      // getUserMenuNavList: apiConfig.root.sysUserApi + '/getUserFullInfoById', //根据用户访问菜单导航菜单数据
      // getUserSwitChoverUser: apiConfig.root.sysUserApi + '/switChoverUser', //超级管理员切换用户接口
      // getOrganizeAllUser: apiConfig.root.sysUserApi + '/getOrganizeAllUser', //获取机构岗位下所有用户
      // getUserByOrganize: apiConfig.root.sysUserApi + '/getUserByOrganize', // 获取公司下的人员
      alterEnableStatus: apiConfig.root.sysUserApi + '/alterStopFlag', //启用停用
      alterDeleteFlag: apiConfig.root.sysUserApi + '/deletedUser' //删除用户
    },
    //g供应商
    bsSupplierApi: {
      boundBsSupplierCommodity: apiConfig.root.bsSupplierApi + '/boundBsSupplierCommodity', //供应商绑定商品
      delete: apiConfig.root.bsSupplierApi + '/delete', //供应商删除
      getBsSupplierCommodity: apiConfig.root.bsSupplierApi + '/getBsSupplierCommodity', //供应商查询绑定的商品
      getById: apiConfig.root.bsSupplierApi + '/getById', //供应商获取详情
      page: apiConfig.root.bsSupplierApi + '/page', //供应商分页
      save: apiConfig.root.bsSupplierApi + '/save', //供应商保存
      update: apiConfig.root.bsSupplierApi + '/update' //供应商更新
    },
    //卡片信息
    bsCardImageApi: {
      delete: apiConfig.root.bsCardImageApi + '/delete', //卡片删除
      getById: apiConfig.root.bsCardImageApi + '/getById', //卡片获取详情
      page: apiConfig.root.bsCardImageApi + '/page', //卡片分页
      save: apiConfig.root.bsCardImageApi + '/save', //卡片保存
      update: apiConfig.root.bsCardImageApi + '/update' //卡片更新
    },
    //招标导入
    sysImportApi: {
      importPtSysUser: apiConfig.root.sysImportApi + '/importPtSysUser' //招标导入
    },
    //招标信息
    bsProBiddingApi: {
      delete: apiConfig.root.bsProBiddingApi + '/delete', //招标删除
      getById: apiConfig.root.bsProBiddingApi + '/getById', //招标获取详情
      page: apiConfig.root.bsProBiddingApi + '/page', //招标分页
      save: apiConfig.root.bsProBiddingApi + '/save', //招标保存
      update: apiConfig.root.bsProBiddingApi + '/update' //招标更新
    },
    //招标文件导入
    sysImportFileApi: {
      sysImportApi: apiConfig.root.sysImportApi + '/importPtSysUser'
    },
    // sysMobilUserApi: {
    //   sysMobilUserApi: apiConfig.root.sysMobilUserApi + '/switChoverUser'
    // },

    //首页登录
    sysLoginApi: {
      loginURL: apiConfig.root.sysLoginApi + '/login', //后台登录
      loginoutURL: apiConfig.root.sysLoginApi + '/loginout', //后台退出
      forgetThePasswordToSendAuthCode: apiConfig.root.sysLoginApi + '/forgetThePasswordToSendAuthCode' //获取验证码
    },

    // 下载文件
    getgetFile: {
      downLoadByGid: apiConfig.root.file + '/downLoadByGid',
      uploadFile: apiConfig.root.file + '/uploadFile',
      getGroupFileData: apiConfig.root.file + '/getGroupFileData',
      uploadSingleFile: apiConfig.root.file + '/uploadSingleFile'
    },

    //文件上传
    fileApi: {
      uploadFile: apiConfig.root.thirdPartyConsumer + '/fileApi/uploadFile', // 新文件上传[05.11]
      getGroupFileData: apiConfig.root.thirdPartyConsumer + '/fileApi/getGroupFileData', // 新获取主文件详情[05.11]
      uploadSingleFile: apiConfig.root.thirdPartyConsumer + '/fileApi/uploadSingleFile', //单文件上传
      uploadMultiFile: apiConfig.root.thirdPartyConsumer + '/fileApi/uploadMultiFile', //多文件上传
      uploadAdditionFile: apiConfig.root.thirdPartyConsumer + '/fileApi/uploadAdditionFile', //签署意见附件上传
      delFileByFid: apiConfig.root.thirdPartyConsumer + '/fileApi/delFileByFid', //删除单文件
      delFileByGid: apiConfig.root.thirdPartyConsumer + '/fileApi/delFileByGid', //按组删除文件
      // uploadMultiFile: apiConfig.root.thirdPartyConsumer + "/fileApi/uploadMultiFile",  //多文件上传
      uploadBase64: apiConfig.root.thirdPartyConsumer + '/fileApi/uploadBase64', //上传base64

      downLoadByGid: apiConfig.root.thirdPartyConsumer + '/fileApi/downLoadByGid', //按组下载
      downLoadByFid: apiConfig.root.thirdPartyConsumer + '/fileApi/downLoadByFid', //按单个下载
      downPackFileByGid: apiConfig.root.thirdPartyConsumer + '/fileApi/downPackFileByGid', //批量下载

      fileLogGetList: apiConfig.root.thirdPartyConsumer + '/fileLogApi/getList' //文件日志埋点
    },

    //商品接口
    bsCommodityApi: {
      getsysGroupPage: apiConfig.root.bsCommodityApi + '/page', //分组分页
      getAllList: apiConfig.root.bsCommodityApi + '/list', //获取所有商品
      savesysGroupPage: apiConfig.root.bsCommodityApi + '/save', //商品新增
      updatesysGroupPage: apiConfig.root.bsCommodityApi + '/update', //分组编辑
      delete: apiConfig.root.bsCommodityApi + '/delete', //分组删除
      GroupByIdsys: apiConfig.root.bsCommodityApi + '/getById' //分组详情
    },
    //招聘信息
    bsRecruitmentApi: {
      getpage: apiConfig.root.bsRecruitmentApi + '/page', //分组分页，
      delete: apiConfig.root.bsRecruitmentApi + '/delete', //分组删除，
      getById: apiConfig.root.bsRecruitmentApi + '/getById', //分组详情，
      save: apiConfig.root.bsRecruitmentApi + '/save', //分组新增，
      update: apiConfig.root.bsRecruitmentApi + '/update' //分组编辑，
    },
    //建筑咨询

    bsConsultancyApi: {
      getpage: apiConfig.root.bsConsultancyApi + '/page', //分组分页，
      delete: apiConfig.root.bsConsultancyApi + '/delete', //分组删除，
      getById: apiConfig.root.bsConsultancyApi + '/getById', //分组详情，
      save: apiConfig.root.bsConsultancyApi + '/save', //分组新增，
      update: apiConfig.root.bsConsultancyApi + '/update' //分组编辑，
    },
    //字典管理
    dictApi: {
      addition: apiConfig.root.sysDictionaryApi + '/addition', //字典编辑，
      delete: apiConfig.root.sysDictionaryApi + '/delete', //字典删除，
      getById: apiConfig.root.sysDictionaryApi + '/getById', //获取详情
      getDictory: apiConfig.root.sysDictionaryApi + '/getDictory', //获取字典
      getList: apiConfig.root.sysDictionaryApi + '/getList', //获取字典列表
      update: apiConfig.root.sysDictionaryApi + '/update' //字典编辑
    },

    //后台文件系统专用
    adminApi: {
      uploadFile: apiConfig.root.thirdPartyConsumer + '/adminApi/uploadFile' // 新文件上传[05.11]
    }
  }
}
